﻿class Solution {
    public int[][] transpose(int[][] matrix) {
int[][] ret=new int[matrix[0].length][matrix.length];
for(int i=0;i<matrix[0].length;i++){
    for(int j=0;j<matrix.length;j++){
        ret[i][j]= matrix[j][i];
    }
}
return ret;
    }
}